<?php

namespace wap\models;

use Yii;
use yii\helpers\ArrayHelper;

/**
 * This is the model class for table "{{%order_products}}".
 *
 * @property string $order_id 产品属性 ID
 * @property string $product_id 产品 ID
 * @property string $quantity 数量
 * @property string $data 数据
 * @property int $status 状态
 */
class OrderProducts extends \common\models\OrderProducts
{

    const STATUS_NEW = 0;

    public function rules()
    {
        return ArrayHelper::merge(parent::rules(), [
            ['status', 'default', 'value' => self::STATUS_NEW],
        ]);
    }
}
